package com.tjetc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
/*
* 购物车
* */
@Data
public class ShoppingCart {
    /*购物车id*/
    private Integer id;
    /*菜品id*/
    private Integer dishId;
    /*用户id*/
    private Integer userId;
    /*菜品数量*/
    private Integer number;
    /*店铺id*/
    private Integer merchantId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
